function setData(){
    $("#author").val(sessionStorage.getItem("nickName"));
}
function save() {
    let data = {
        userId: sessionStorage.getItem("userId"),
        author: $("#author").val(),
        time: $("#time").val(),
        major: $("#major").val(),
        coach: $("#coach").val(),
        councilor: $("#councilor").val(),
        content: $("#content").val(),
        event: $("#event").val(),
        starred: $("#starred").val(),
        harvest: $("#harvest").val(),
        doubt: $("#doubt").val(),
        help: $("#help").val()
    };
    let result = myAjax("/api/dw/daily/add", data, "post");
    if (result.data === 1) {
        alert(result.message);
        x_admin_close();
        x_admin_father_reload();
    } else {
        alert(result.message);
    }
}